﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class UImanager : MonoBehaviour
{
    public static UImanager instance;
    private Text Suntext;
    private void Awake()
    {
        instance = this;
        Suntext = GameObject.Find("阳光数").GetComponent<Text>() ;
    }
   public void UpdateSunCount(int count)
    {
        Suntext.text=count.ToString();
    }
    public Vector3 TextPos()
    {
        return Suntext.transform.position;
    }
}
